<?php
// 本类由系统自动生成，仅供测试用途
class FaithAction extends Action {
	public function index(){
		$Article = M("Article");
		$condition['article_type_name'] = faith;
		$Faith=$Article->where($condition)->order('article_id desc')->select();
		$this->assign('Faith',$Faith);
		$this->display();
	}
	
	public function detial(){
		$a_id = $_GET["_URL_"][2];
		$Article = M("Article");
		$condition['article_id'] = $a_id;
		$FaithD=$Article->where($condition)->find();
		$this->assign('FaithD',$FaithD);
		$this->display();
	}
}
?>